package tool;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.Toolkit;

import javax.swing.JFrame;

public class WindowsUtil {

	private static Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();

	public static Point setLocation(int width, int height) {
		int x = (int) ((screenSize.getWidth() - width) / 2);
		int y = (int) ((screenSize.getHeight() - height) / 2);

		return new Point(x, y);
	}
}
	
